package com.hizzyzzh.source.java.base.java.util.function;

import com.hizzyzzh.source.java.base.java.util.Objects;

public interface Consumer<T> {

    void accept(T t);

    default Consumer<T> andThen(Consumer<? super T> after){
        Objects.requireNonNull(after);
        return (T t) -> {accept(t); after.accept(t);};
    }
}
